package spring.boot.client.handler.chat;

import io.netty.channel.Channel;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import spring.boot.client.dispatcher.MessageHandler;
import spring.boot.client.message.chat.ChatRedirectToUserRequest;

@Slf4j
@Component
public class ChatRedirectToUserRequestHandler implements MessageHandler<ChatRedirectToUserRequest> {

    @Override
    public void execute(Channel channel, ChatRedirectToUserRequest message) {
        log.info("Netty客户端[ChatRedirectToUserRequestHandler][收到消息：{}]", message);
    }

    @Override
    public String getType() {
        return ChatRedirectToUserRequest.TYPE;
    }

}
